import React from 'react';
import { Icon, Button } from 'antd';
import { Page } from 'components';
import styles from './index.less';

const Error = () => (<Page inner>
    <div className={styles.error}>
        <Icon type="frown-o" />
        <h1>404 Not Found</h1>
        { location.pathname === '/postMen' &&
    <Button onClick={() => location.reload(true)} size="large">开启传送🚪</Button>}
    </div>
</Page>);

export default Error;
